import axios from "axios"

export default {
    get<T>(url:string,query?:T){
        return axios.get(url,{
            params:query
        })
    },
    post<T>(url:string,body:T){
        return axios.post(url,body);
    },
    put<T>(url:string,body:T){
        return axios.put(url,body);
    },
    delete<T>(url:string,query?:T){
        return axios.delete(url,{
            params:query
        })
    },
}